<template>
	<view id="app">
		<view class="container fdc">
			<view class="ver ais bgw mb30 w100p">
				<view class="rows aic">
					<view class="df aic">
						<uv-icon name="volume" size="50rpx" color="#FFAC3E"></uv-icon>
						<view class="c000 ml15 f28">消息提示</view>
					</view>
					<view class="c666 f26 pr10">2025-05-30 12:40</view>
				</view>
				<view class="lh50  bdt1s brcce ptb10 plr20 c666 f26 ">
					消息提示消息提示消息提示消息提示消息提示消息提示消息提示消息提示消息提示消息提示消息提示消息提示消息提示
				</view>
			</view>
		</view>
		<uv-tabbar :value="3" iconSize="50rpx" activeColor="#FFAC3E" inactiveColor="#9ea09f" zIndex="1000"
			:fixed="true">
			<uv-tabbar-item text="首页"  @click="reLaunch()">
				<template v-slot:active-icon>
					<image class="wh50" :src="uselected"></image>
				</template>
				<template v-slot:inactive-icon>
					<image class="wh50" :src="uselecte"></image>
				</template>
			</uv-tabbar-item>
			<uv-tabbar-item text="找工匠" @click="redirect('user/cate/cate')">
				<template v-slot:active-icon>
					<image class="wh50" :src="ugjd"></image>
				</template>
				<template v-slot:inactive-icon>
					<image class="wh50" :src="ugj"></image>
				</template>
			</uv-tabbar-item>
			<uv-tabbar-item text="消息" icon="chat"></uv-tabbar-item>
			<uv-tabbar-item text="我的" icon="account" @click="redirect('member/mine/mine',true)"></uv-tabbar-item>
		</uv-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				uselected:this.util.config.host+'/static/images/uhomed.png',
				uselecte:this.util.config.host+'/static/images/home.png',
				ugjd:this.util.config.host+'/static/images/gjd.png',
				ugj:this.util.config.host+'/static/images/gj.png',
			}
		},
		methods: {
			redirect:function(e,isLogin=false){
				if(isLogin == true){
					if(!uni.getStorageSync('QLXG_token')){
						uni.navigateTo({
							url:"/pages/user/index/login"
						})
						return false;
					}
				}
				uni.redirectTo({
					url:"/pages/"+e,
				})
			},
			reLaunch:function(){
				uni.reLaunch({
					url:"/pages/index/index",
				})
			}
		}
	}
</script>

<style>

</style>
